package com.tywj.panda.pay.provider

import com.tywj.panda.pay.route.PayRoute
import com.alibaba.android.arouter.facade.annotation.Route
import com.tywj.panda.customer.common.provider.IPayService
import com.tywj.lib.route.RouteNavigation

/**
 * <pre>
 *     author : June Yang
 *     time   : 2018/12/11
 *     desc   :选择支付接口实现
 *     version: 1.0
 * </pre>
 */
@Route(path = PayRoute.PAY_SERVICE)
class PayServiceImpl : IPayService {

    companion object {
        // 支付结果回调
        internal var payCallback: IPayService.Callback? = null
    }


    override fun toPay(orderId: String, money: Int, callback: IPayService.Callback): RouteNavigation {
        payCallback = callback
        return PayRoute.toPay(orderId, money)
    }
}